package com.usian.tu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.pojos.WmNews;
import com.usian.tu.mapper.FabuMapper;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface FabuService extends IService<WmNews> {
//    文章发布
    public ResponseResult list(@RequestBody WmNewsDto dto, Integer status);
//媒体的一个根据id返回对象
    public ResponseResult findbyid(@PathVariable Integer id);

//    进行媒体表进行修改
    public ResponseResult updateStatusAndReason(@RequestBody WmNews wmNews);



    WmNews getbynew(Integer id);

    List<Integer> zidongshenhe();

    ResponseResult shangxiajia(WmNews wmNews);

}
